{template "content","header"}

<!-- header -->
<header class="header bg2 clearfix">
	<h3><a href="{get_ref(APP_PATH)}" title="返回上一级"><img src="{IMG_PATH2}icon/back.png" alt="返回上一级"></a></h3>
	<form action="{SEARCH_PATH}" method="get" id="searchForm">
		<input type="hidden" name="m" value="search">
		<input type="text" name="q" class="text2" placeholder="输入您想查询的课程" value="{$q}">
		<input type="submit" class="btnSubmit2" id="btnSubmit2" value="搜索">
	</form>
</header>
<!-- / header -->
<div class="h_48"></div>

<!-- main -->
<main class="main">
{if !$q}
	<section class="searchPage">
		<div class="t2">热门搜索</div>
		<ul class="oList8 clearfix"></ul>
	</section>
{else}
	<section class="searchPage">
		<div class="t1">共搜索<em id="number">{$num}</em>个课程</div>
		<ul class="oList7">
{loop $class_arr $r}
			<li><a href="{$r[url]}">
					<div class="oList7Pic fl"><img src="{$r[thumb]}"></div>
					<div class="oList7Con">
						<div class="t3">{$r[title]}</div>
						<div class="oList6Record clearfix">
							<span class="v_people fl">{date('Y-m-d',$r[class_time1])}</span>
							{php $techer=getTeacherInfo($r[one_teacher])}
							<span class="v_people2 fl">{$techer[title]}</span>
						</div>
					</div>
			</a></li>
{/loop}
		</ul>
	</section>
{/loop}
</main>
<!-- / main -->
<div class="h_48"></div>

{template "content","footer"}